//
//  Carousel.swift
//  HiBook
//
//  Created by Apple on 16/7/31.
//  Copyright © 2016年 Apple. All rights reserved.
//

import UIKit
class CarouselModel : NSObject,iCarouselDelegate,iCarouselDataSource
{
    var target : RecommendViewController?

    var modelArray = [Carousel]()
    
    var imageViewArray = [UIImageView]()
    
    var imageArray = [UIImage]()
    
    var urlArray = [String]()
    
    func numberOfItemsInCarousel(carousel: iCarousel) -> Int {
        return 4
    }
    func carousel(carousel: iCarousel, viewForItemAtIndex index: Int, reusingView view: UIView?) -> UIView {
        if imageViewArray.count>0 {
            return imageViewArray[index]
        }else{
            return UIImageView()
        }
        

    }
}
